﻿using System;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;

namespace ProjScan.Config
{
	// Token: 0x02000326 RID: 806
	internal class BasicAssetsCheckConfig : BaseConfig
	{
		// Token: 0x060012D0 RID: 4816 RVA: 0x0005A020 File Offset: 0x00058220
		public override void Init()
		{
			this.hasSeparateTargetDirSettings = true;
			this.hasWhiteList = true;
			this.hasfailedData = true;
			this.hasFixRule = true;
			bool flag = this.dicRuleConfig == null;
			if (flag)
			{
				this.dicRuleConfig = new Dictionary<string, RuleConfig>();
			}
			else
			{
				this.dicRuleConfig.Clear();
			}
		}

		// Token: 0x060012D1 RID: 4817 RVA: 0x00008D2E File Offset: 0x00006F2E
		public override void LoadConfig(JObject data)
		{
			this._rootConfig = (JObject)data["Basic_Assets_Check"];
			this.ResolveRule();
		}

		// Token: 0x060012D2 RID: 4818 RVA: 0x00008D4E File Offset: 0x00006F4E
		public override void SaveConfig(JObject data)
		{
			data.Add("Basic_Assets_Check", this.SaveJObjectRule());
		}
	}
}
